#pragma once
#include "ComDefinition.h"
#include "afxwin.h"

class CLineDisplay;
class CDlgLDCheck : public CDialog
{
	//DECLARE_DYNAMIC(CDlgLDCheck)

public:
	CDlgLDCheck(CWnd* pParent = NULL);   
	virtual ~CDlgLDCheck();


	enum { IDD = IDD_DLG_LDCHECK };

    void SetLineDisplayInfo(int nType, int nPort);
    void EnablePT(BOOL bPT = TRUE) {m_bPT = bPT;}

    int GetResult() const {return m_nStatus;}

protected:
	virtual void DoDataExchange(CDataExchange* pDX);   

    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);

    afx_msg void OnBnClickedOk();
    afx_msg LRESULT OnInitAdditionItems(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

private:
    CLineDisplay *m_pLineDisplay;
    EDeviceStatus m_nStatus;
    BOOL m_bPT;

public:
    afx_msg void OnBnClickedBtnDes1();
    afx_msg void OnBnClickedBtnDes2();
    afx_msg void OnBnClickedBtnDes3();
    afx_msg void OnBnClickedBtnDes4();
    afx_msg void OnBnClickedBtnDes5();
    afx_msg void OnBnClickedRadioNormal();
    afx_msg void OnBnClickedRadioError();
    afx_msg void OnBnClickedRadioPass();
};
